package engine.newUi
{
	import engine.control.loading.MultLoader;
	import engine.data.ResPath;
	import engine.flag.ResourcesPath;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	
	import mx.resources.ResourceManager;
	
	import newx.com.control.NxClip;
	import newx.com.control.Scroll.NxScrollPanel;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;

	/**
	 * 
	 * @author yangcg
	 * 
	 */	
	public class ActionFaceplateUI extends BaseUI
	{
		public static var _self:ActionFaceplateUI; 
		public static function getIntence():ActionFaceplateUI
		{
			if(_self==null)
			{
				_self = new ActionFaceplateUI(); 	
			}
			return _self
		}
//		public var btn_1:NxButton ; 
//		public var btn_2:NxButton ; 
//		public var btn_3:NxButton ; 
//		public var btn_4:NxButton ; 
//		public var btn_5:NxButton ; 
		
		public var btn:NxViewGroup;
		
		public var leftBtn:NxButton;
		public var rightBtn:NxButton; 
		
		public var money:NxButton; 
//		public var gain:NxButton; 
		
		public var Image:NxClip ; 
		
		public var label_page:NxLabel; 
//		public var label_1:NxLabel; 
//		public var label_say:NxLabel;
		public var label_2:NxLabel;
		public var activitytime:NxLabel; 
		public var getAward:NxLabel; 

		
		public var mc_1:NxClip;
		/**已领取**/
		public var text:NxText; 
		public var item:NxViewGroup; 
		public var nxPanel:NxScrollPanel;
		
		public var image_1:NxClip  ; 
		public var image_2:NxClip 	; 
		public var image_3:NxClip 	;

		public function ActionFaceplateUI(popupUI:Boolean = true )
		{
			super(popupUI)
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			if(!MultLoader.getInstance().getSourceByUrl(ResPath.SWF+"ActionFaceplateUI"+".swf"))
			{
				MultLoader.getInstance().load([ResPath.SWF+"ActionFaceplateUI"+".swf"],true , createImage);
			}else
			{
				createImage();
			}
		}
		private function createImage():void
		{
			mc_1.source = MultLoader.getInstance().getSourceByUrl(ResPath.SWF+"ActionFaceplateUI"+".swf")
			super.show();
		}
		override public function Init():void
		{
			ActionFaceplateLogic.getInstance().Init();
		}
		override protected function BeforeShow():void
		{
			ActionFaceplateLogic.getInstance().BeforeShow();
		}
		override protected function AfterHide():void
		{
			ActionFaceplateLogic.getInstance().AfterHide();
		}
	}
}